package bancosys.tec.persist.authorization;

import static jmine.tec.persist.PersistMessages.DATA_ALREADY_IN_AUTHORIZATION;

import java.io.Serializable;

import bancosys.tec.exception.BusinessException;

/**
 * @created 17/09/2007
 * @author Gustavo Almeida
 */
public class DataAlreadyInAuthorizationException extends BusinessException {
    private Serializable clazz;

    private Serializable id;

    /**
     * Construtor.
     * 
     * @param clazz classe do bo.
     * @param id id do bo.
     */
    public DataAlreadyInAuthorizationException(Class<?> clazz, Serializable id) {
        super(DATA_ALREADY_IN_AUTHORIZATION.create(clazz, id));
        this.clazz = clazz;
        this.id = id;
    }

    /**
     * @return classe do bo.
     */
    public Serializable getBoClass() {
        return this.clazz;
    }

    /**
     * @return id do bo.
     */
    public Serializable getId() {
        return this.id;
    }
}
